import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '名称',
    align: "left",
    dataIndex: 'name',
    key: 'name',
  }
];
export const columnstwo: BasicColumn[] = [
  {
    title: '名称',
    align: "left",
    dataIndex: 'name',
    key: 'name'
  }
];
export const columnsthree: BasicColumn[] = [
  {
    title: '名称',
    align: "left",
    dataIndex: 'name',
    key: 'name'
  },
  {
    title: '说明',
    align: "center",
    dataIndex: 'remark',
    key: 'remark'
  },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: "班组",
    field: 'team',
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    label: "名称",
    field: 'name',
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    label: "类型",
    field: 'type',
    component: 'JDictSelectTag',
    componentProps: {
    },
    colProps: { span: 6 },
  },
  {
    label: "父级id",
    field: 'pid',
    component: 'JDictSelectTag',
    componentProps: {
    },
    colProps: { span: 6 },
  },

];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '班组',
    field: 'team',
    component: 'Input',
  },
  {
    label: '名称',
    field: 'name',
    component: 'Input',
  },
  {
    label: '依据名称',
    field: 'basisName',
    component: 'Input',
  },
  {
    label: '依据编号',
    field: 'basisNum',
    component: 'Input',
  },
  {
    label: '限制范围',
    field: 'scope',
    component: 'Input',
  },
  {
    label: '说明',
    field: 'remark',
    component: 'Input',
  },
  {
    label: '依据附件',
    field: 'basisAtta',
    component: 'JUpload',
    componentProps: {
    },
  },
  {
    label: '类型',
    field: 'type',
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: ""
    },
  },
  {
    label: '父级id',
    field: 'pid',
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: ""
    },
  },
  {
    label: '级次',
    field: 'level',
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: ""
    },
  },
  // TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
